package cn.itcast.goods.book.pager;

import java.util.List;

public class PageBean<T> {
    private int tr;//总记录数
    private int ps;//每页的记录数
    private int pc;//当前页码
    private String url;//url地址
    private List<T> list;
    public int getTp()
    {
        int tp=tr/ps;
        return tr%ps==0?tp:tp+1;
    }

    public int getTr() {
        return tr;
    }

    public void setTr(int tr) {
        this.tr = tr;
    }

    public int getPs() {
        return ps;
    }

    public void setPs(int ps) {
        this.ps = ps;
    }

    public int getPc() {
        return pc;
    }

    public void setPc(int pc) {
        this.pc = pc;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }
}
